package bid.dao;

import bid.entity.Professor;

import java.util.List;

public interface ProfessorDao {
    public int add(Professor a);

    public int update(Professor a);

    public int del(long id);

    //搜索 1:根据主键找
    public Professor get(long id);

    //搜索2：分页
    public List<Professor> search(int pageNo, int pageSize);

    long searchTotal();
}
